
<%@page import="qldc.pm.csdl.cd90.service.QuocTichLocalServiceUtil"%>
<%@page import="qldc.pm.csdl.cd90.model.QuocTich"%>
<%@page import="qldc.pm.csdl.cd90.service.CongDanDTOLocalServiceUtil"%>
<%@page import="qldc.pm.csdl.cd90.model.dto.CongDanDTO"%>
<%@ include file="../../init.jsp"%>

<%
	String soDinhDanhCaNhan = ParamUtil.getString(request, "soDinhDanhCaNhan");
	System.out.println("quan he huyet thong: soDinhDanhCaNhan: >>>"+soDinhDanhCaNhan);
	CongDanDTO congDanDTO = null;
	String _hoTenCha ="";
	String _quocTichCha ="";
	String _soDinhDanhCaNhanCha = "";
	
	String _hoTenMe ="";
	String _quocTichMe ="";
	String _soDinhDanhCaNhanMe = "";
	
	if(Validator.isNotNull(soDinhDanhCaNhan)){
		congDanDTO = CongDanDTOLocalServiceUtil.findBySoDinhDanhCaNhan(soDinhDanhCaNhan);
		if(Validator.isNotNull(congDanDTO)){
			_hoTenCha = congDanDTO.getHoVaTenCha();
			_hoTenMe = congDanDTO.getHoVaTenMe();
			_soDinhDanhCaNhanCha = congDanDTO.getSoDinhDanhCaNhanCha();
			_soDinhDanhCaNhanMe = congDanDTO.getSoDinhDanhCaNhanMe();
			
			QuocTich quocTichCha = QuocTichLocalServiceUtil.findBySoDinhDanhCaNhan(_soDinhDanhCaNhanCha);
			if(Validator.isNotNull(quocTichCha)){
				_quocTichCha = quocTichCha.getQuocTich();
			}
			QuocTich quocTichMe = QuocTichLocalServiceUtil.findBySoDinhDanhCaNhan(_soDinhDanhCaNhanCha);
			if(Validator.isNotNull(quocTichMe)){
				_quocTichMe = quocTichMe.getQuocTich();
			}
		}
	}
%>

<div id="<portlet:namespace/>quan-he-huyet-thong-content">
	<table class="gridnormal">
		<tr>
			<td colspan="2">
				<liferay-ui:message key="thong-tin-cua-cha" />
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="ho-ten" />
			</td>
			<td>
				<%=_hoTenCha %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="quoc-tich" />
			</td>
			<td>
				<%=_quocTichCha %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="so-dinh-danh-ca-nhan" />
			</td>
			<td>
				<%=_soDinhDanhCaNhanCha %>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
				<liferay-ui:message key="thong-tin-cua-me" />
			</td>
		</tr>
		<tr>
			<td>
				<liferay-ui:message key="ho-ten" />
			</td>
			<td>
				<%=_hoTenMe %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="quoc-tich" />
			</td>
			<td>
				<%=_quocTichMe %>
			</td>
		</tr>

		<tr>
			<td>
				<liferay-ui:message key="so-dinh-danh-ca-nhan" />
			</td>
			<td>
				<%=_soDinhDanhCaNhanMe %>
			</td>
		</tr>


	</table>
</div>

<script type="text/javascript">
</script>